/* gcc -Wall `pkg-config --libs --cflags enesim emage` radial01.c -o radial01 -I../ */
#include "Enesim.h"
#include "example.h"

static Enesim_Renderer * radial01(void)
{
	Enesim_Renderer *r;
	Enesim_Renderer_Gradient_Stop stop;

	r = enesim_renderer_gradient_radial_new();
	stop.argb = 0xff000000;
	stop.pos = 0;
	enesim_renderer_gradient_stop_add(r, &stop);
	stop.argb = 0xffffffff;
	stop.pos = 1;
	enesim_renderer_gradient_stop_add(r, &stop);

	enesim_renderer_gradient_radial_center_set(r, 128, 128);
	enesim_renderer_gradient_radial_focus_set(r, 78, 78);
	enesim_renderer_gradient_radial_radius_set(r, 50);

	return r;
}

EXAMPLE(radial01)

